package com.robotserver.orders.mapper;

import com.robotserver.orders.entity.TbOrders;
import com.robotserver.orders.param.biz.TbOrderPullParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * TbOrdersMapper继承基类
 */
@Repository
public interface TbOrdersMapper {
    void add(TbOrders tbOrders);
    void update(TbOrders tbOrders);
    TbOrders getByOrderNo(@Param("tradeParentId") String tradeParentId,@Param("tradeId") String tradeId);

    List<TbOrders> getOrderList(TbOrderPullParam param);

    List<TbOrders> getOrderListNew(TbOrderPullParam param);

    List<TbOrders> getByOrderId(@Param("orderId") String orderId);

    TbOrders getByParAndCliId(@Param("tradeParentId") String tradeParentId,@Param("tradeId") String tradeId);

    void updateSpId(TbOrders tbOrder);

    void deleteOrdersExpired(@Param("expiredTime") Integer expiredTime);

    void updateUpdateTime(@Param("tradeParentId") String tradeParentId, @Param("tradeId") String tradeId);
}